<?php

Class Book extends Commodity
{
    private $name;
    private $Inventory;
    private $price;
    private $Author;
    private $made;

    function show()
    {

        echo $this->Author."编著的".$this->name."卖".$this->price."块钱由".$this->made."出版"."<br>";
    }


    function __set($name, $value)
    {
        $this->$name=$value;
    }
}